python sort dict by key

40

d1 = dict(sorted(d.items(), key = lambda x:x[0]))

Comments

Submit
0 Comments